/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg23designpatterns.za.ac.cput.creational.abstractFactoryPattern;

/**
 *
 * @author Oceanwave
 */
public class MammalFactory extends SpeciesFactory 
{

    @Override
    public Animal getAnimal(String type) 
    {
        if ("dog".equals(type))
            return new Dog();
        else
            return new Cat();
    }
    
}
